﻿// 标准管理平台

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Passion.iWMS.Application;

/// <summary>
/// 2 入库动作
/// 2.1 入库确认
/// 自動倉入料口讀取條碼後, 會上傳資料詢問是否可入庫。
/// 
/// 存放完後,把所有相關數據上傳,確保正確性。
/// 若異常，則需要傳送錯誤代碼(EndCode)及錯誤原因(EndReason)；若完成入庫，錯誤代碼為0。 
/// 
/// API名稱: [POST] /api/WCS/StockInRequest
/// ASRS -> Host
/// </summary>
[SugarTable("Host_StockInRequest", "入库确认")]
[IncreTable]
public class Host_StockInRequest_2_1 : EntityBase
{
    /// <summary>
    /// 编码
    /// </summary>
    [SugarColumn(ColumnDescription = "编码", Length = 50)]
    [MaxLength(50)]
    public string RegisterID { get; set; }
    /// <summary>
    /// 入口代码
    /// </summary>
    [SugarColumn(ColumnDescription = "入口代码", Length = 50)]
    [MaxLength(50)]
    public string PortID { get; set; }
    /// <summary>
    /// 是否為空
    /// </summary>
    [SugarColumn(ColumnDescription = "是否為空", Length = 50)]
    [MaxLength(50)]
    public string EmptyFlag { get; set; }
    /// <summary>
    /// 厂别
    /// </summary>
    [SugarColumn(ColumnDescription = "厂别", Length = 50)]
    [MaxLength(50)]
    public string PlantID { get; set; }
    /// <summary>
    /// 仓别
    /// </summary>
    [SugarColumn(ColumnDescription = "仓别", Length = 50)]
    [MaxLength(50)]
    public string StorageLocation { get; set; }
    /// <summary>
    /// 尺寸
    /// </summary>
    [SugarColumn(ColumnDescription = "尺寸", Length = 50)]
    [MaxLength(50)]
    public string Size { get; set; }
    /// <summary>
    /// 厚度
    /// </summary>
    [SugarColumn(ColumnDescription = "厚度", Length = 50)]
    [MaxLength(50)]
    public string Height { get; set; }
    /// <summary>
    /// 是否上传
    /// </summary>
    [SugarColumn(ColumnDescription = "是否上传", Length = 50)]
    [MaxLength(50)]
    public string IsReport { get; set; }
    /// <summary>                                                                                                                                                                                                                                                                                                                       
    /// 备注
    /// </summary>
    [SugarColumn(ColumnDescription = "备注", Length = 5000)]
    [MaxLength(5000)]
    public string ReportRemarks { get; set; }

    /// <summary>
    /// 返回后是否处理
    /// </summary>
    [SugarColumn(ColumnDescription = "返回后是否处理", Length = 50)]
    [MaxLength(50)]
    public string IsResponse { get; set; }
    /// <summary>
    /// 返回消息体
    /// </summary>
    [SugarColumn(ColumnDescription = "返回消息体", Length = 50)]
    [MaxLength(50)]
    public string ResponseContent { get; set; }
}

public class Host_StockInRequest_2_1_ResponseDTO
{
    public string Result { get; set; }
    public string CommandID { get; set; }
    public string RegisterID { get; set; }
    public string PortID { get; set; }
    public string WOID { get; set; }
    public string LineID { get; set; }
    public string OPCode { get; set; }
    public string NextOPCode { get; set; }
    public string ItemID { get; set; }
    public string Quantity { get; set; }
    public string ExtCarrierSize { get; set; }
    public string IntCarrierSize { get; set; }
    public string StartProcTime { get; set; }
    public string TableID { get; set; }
    public string SlotID { get; set; }
    public string PostedFlag { get; set; }
}